<div ng-controller="GatherController">
    <!--头部导航 开始-->
    <header class="bar bar-nav">
        <h1 class="title">周目标</h1>
        <a href="javascript:;" ng-click="goHome()" class="icon pull-left"><i
                class="sstfont sst-xiangzuo"></i></a>
        <!--<a href="javascript:;" ng-click="loginOnClick()" class="icon pull-right"><i
                class="sstfont sst-wode"></i></a>--></header>
    <!--头部导航 结束-->

    <!--主体部分 开始-->
    <div class="content">
        <div class="content-block">
            <div class="weui-cells">
                <div class="weui-cell">
                    <div class="weui-cell__bd">
                        <textarea id="descript" class="weui-textarea" placeholder="请输入周目标" rows="8"
                                  onKeyDown="checkLength()"></textarea>
                        <div class="weui-textarea-counter"><span id="workNum">0</span>/500</div>
                    </div>
                </div>
            </div>
            <div class="weui-cells__tips">周目标其它人也可以看到哦。</div>
            <input type="hidden" name="cY" value="">
            <div class="weui-btn-area">
                <input ng-click="saveSummary()" name="" class="weui-btn weui-btn_primary" type="submit" id="cesuan"
                       value="提交">
            </div>
        </div>
        <div ng-repeat="vo in gatherList track by $index" class="weui-panel weui-panel_access"
             style="margin:10px 0 10px 0; padding-top:0px;">
            <div class="part_hd"><h5>{{vo.name}}</h5></div>
            <article class="weui-article whitebg">
                <section ng-bind-html="vo.descript">

                </section>
            </article>
        </div>


    </div>
</div>
<!--主体部分 结束-->
</div>
<script>
    function checkLength() {
        var value = $("#descript").val();
        if (value.length > 500) {
            document.getElementById("descript").value = document.getElementById("descript").value.substr(0, 500);
        } else {
            document.getElementById("workNum").innerHTML = value.length;
        }
    }
</script>